﻿/********************************************************************************/
// <copyright file="IUnitOfWork.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
//
// <history>
//  <change who="Hieu Nguyen" date="11/12/2012 12:07:18 PM">Created</change>
// <history>
/********************************************************************************/

namespace JLL.China.Infrastructure.UnitOfWork
{
    using JLL.China.Infrastructure.DomainBase;
    using JLL.China.Infrastructure.RepositoryFramework;

    public interface IUnitOfWork<T> where T : new()
    {
        void RegisterAdded(IEntity<T> entity, IUnitOfWorkRepository<T> repository);
        void RegisterChanged(IEntity<T> entity, IUnitOfWorkRepository<T> repository);
        void RegisterRemoved(IEntity<T> entity, IUnitOfWorkRepository<T> repository);
        void Commit();
    }
}
